package calao.plan;

import calao.util.TimePeriod;

public class Weeks 
{
	
	public static Integer[] getPeriodWeeks(long start, long end)
	{
		int startWeek = getWeek(start);
		int endWeek = getWeek(end-1);
		Integer[] result = new Integer[endWeek-startWeek+1];
		for (int i=0; i<result.length; i++) {
			result[i] = startWeek+i;
		}
		return result;
	}
	
	public static int getWeek(long time)
	{
		return (int)(time/TimePeriod.WEEK);
	}

}
